Skip to content

Add exp+linear fccd model for the Germanium detectors#162

Merged
tdixon97 merged 9 commits intolegend-exp:mainfrom
giriPHM:lin_exp
Feb 10, 2026
Merged

Add exp+linear fccd model for the Germanium detectors#162
tdixon97 merged 9 commits intolegend-exp:mainfrom
giriPHM:lin_exp

Conversation

@giriPHM
Copy link
Contributor

@giriPHM giriPHM commented Feb 5, 2026

This is an effort to add the exponential + linear model for fccd. After talking with Toby, I realized that he was working on implementing the same model at the same time. We thought it would be a good idea to compare between our approaches to make sure that all the cases are well-handled.

For the parameters, fccd = 1, alpha =0.5, beta = 0.05, here is the output from my implementation overlayed with Toby's.
ExLinT_fccd_model

@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 9.30233% with 39 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.98%. Comparing base (def9e9c) to head (bbdcdfb).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/reboost/math/functions.py 9.30% 39 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #162      +/-   ##
==========================================
- Coverage   70.00%   68.98%   -1.02%     
==========================================
  Files          33       33              
  Lines        2587     2631      +44     
==========================================
+ Hits         1811     1815       +4     
- Misses        776      816      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tdixon97
Copy link
Collaborator

tdixon97 commented Feb 5, 2026

Thanks @giriPHM some parts look improved compared to my implementation. But could you instead return ak.Array with units like in piecewise_linear_activeness?

Shailesh Giri and others added 2 commits February 5, 2026 11:51
@tdixon97
Copy link
Collaborator

tdixon97 commented Feb 6, 2026

Thanks @giriPHM for the nice contribution. It is similar to the open PR #162 but I think this implementation is a bit better and handles more cases.
I left a few very minor (mostly sylistic) comments. In addition, could you propose a name a bit more in line with other reboost processors (this should be call lower case for example we use piecewise_linear_activeness for the linear model).

I noticed you did not include any tests yet, I wrote some for #157 so maybe we can add them also here, if you want I can do this.

Shailesh Giri and others added 2 commits February 8, 2026 15:41
Implementing the requested changes on the Excellent model for fccd
@tdixon97
Copy link
Collaborator

tdixon97 commented Feb 8, 2026

Nice work @giriPHM , you have some linting errors can you run pre-commit locally:

pre-commit run --all-files

and then fix the errors and add + commit + push the new files.

Similarly can you try to build the docs locally

cd docs
make

and fix the errors (probably just a empty line is needed after the math block)

Shailesh Giri and others added 3 commits February 9, 2026 15:16
Fix the errors from pre-commit and docs build
Changing the documentation as requested
@tdixon97 tdixon97 merged commit 409f161 into legend-exp:main Feb 10, 2026
15 checks passed
tdixon97 pushed a commit that referenced this pull request Feb 12, 2026
* Add exp+lin fccd model for the Germanium detectors

* style: pre-commit fixes

* Returning the results as ak.Array and attaching units to them

Returning the results as ak.Array with attached units

* style: pre-commit fixes

* Implementing the requested changes on the Excellent model for fccd.

Implementing the requested changes on the Excellent model for fccd

* style: pre-commit fixes

* Fix errors from pre-commit and docs build

Fix the errors from pre-commit and docs build

* style: pre-commit fixes

* Changing the documentation as requested

Changing the documentation as requested

---------

Co-authored-by: Shailesh Giri <gishai@Mac.lan>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shailesh Giri <gishai@Julietas-Laptop-3.local>
tdixon97 pushed a commit that referenced this pull request Feb 12, 2026
* Add exp+lin fccd model for the Germanium detectors

* style: pre-commit fixes

* Returning the results as ak.Array and attaching units to them

Returning the results as ak.Array with attached units

* style: pre-commit fixes

* Implementing the requested changes on the Excellent model for fccd.

Implementing the requested changes on the Excellent model for fccd

* style: pre-commit fixes

* Fix errors from pre-commit and docs build

Fix the errors from pre-commit and docs build

* style: pre-commit fixes

* Changing the documentation as requested

Changing the documentation as requested

---------

Co-authored-by: Shailesh Giri <gishai@Mac.lan>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shailesh Giri <gishai@Julietas-Laptop-3.local>
tdixon97 added a commit that referenced this pull request Feb 12, 2026
* Add exp+lin fccd model for the Germanium detectors

* style: pre-commit fixes

* Returning the results as ak.Array and attaching units to them

Returning the results as ak.Array with attached units

* style: pre-commit fixes

* Implementing the requested changes on the Excellent model for fccd.

Implementing the requested changes on the Excellent model for fccd

* style: pre-commit fixes

* Fix errors from pre-commit and docs build

Fix the errors from pre-commit and docs build

* style: pre-commit fixes

* Changing the documentation as requested

Changing the documentation as requested

---------

Co-authored-by: giriPHM <94209767+giriPHM@users.noreply.github.com>
Co-authored-by: Shailesh Giri <gishai@Mac.lan>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shailesh Giri <gishai@Julietas-Laptop-3.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants